package com.zhuss.product.db.dao.ext;

import java.util.List;

import com.zhuss.bean.vo.product.line.ListLineSiteVo;
import com.zhuss.bean.vo.product.train.ListLineStrategySiteVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.zhuss.product.db.dao.gen.LineStrategySiteMapper;
import com.zhuss.product.db.entity.LineStrategySite;

/**
 * @description: 线路策略信息站点数据库Dao
 * @author: zhushanshuo
 * @create: Mon Jan 04 09:51:43 CST 2021
 **/

@Mapper
public interface LineStrategySiteDao extends LineStrategySiteMapper {

	void create(LineStrategySite record);

	void delete(LineStrategySite record);

	List<Long> listBySiteAndTakeType(@Param("siteId") Long siteId, @Param("takeTypeList") List<Integer> takeTypeList);

	List<ListLineStrategySiteVo> listByStrategy(@Param("lineStrategyId") Long lineStrategyId);
	
	List<Long> listSite();

	void batchInsert(@Param("lineName") String lineName, @Param("siteVos") List<ListLineSiteVo> siteVos,
					 @Param("lineStrategyId") Long lineStrategyId);

}
